package main

import "fmt"

func main() {
	var trans = [3][3]int{{1,2,3},{4,5,6},{7,8,9}}
	fmt.Println(trans)
	for i:=0;i<3;i++{
		for j:=0;j<i;j++{
			trans[i][j], trans[j][i] = trans[j][i], trans[i][j]
		}
	}
	fmt.Println(trans)
}
